Skip to content

Comments

Servisler ve Controller'lar temel CRUD işlemleri için Generic hale getirildi. (IServiceBase, GenericBaseController)#9

Open
mtyuksel wants to merge 2 commits intoengindemirog:masterfrom
mtyuksel:master
Open

Servisler ve Controller'lar temel CRUD işlemleri için Generic hale getirildi. (IServiceBase, GenericBaseController)#9
mtyuksel wants to merge 2 commits intoengindemirog:masterfrom
mtyuksel:master

Conversation

@mtyuksel
Copy link

  • Projenin eski halinde hem Servislerde hem Controller'larda temel CRUD işlemleri (add, get, update, delete) tekrarlanmaktaydı. Bu yapı servisler için IServiceBase, Controller'lar için GenericBaseController'da toplandı. Kod tekrarının önüne geçilmiş oldu.

  • Ek olarak, API Controller'larında her bir istek için kendini tekrarlayan result success durumuna göre Ok() ya da BadRequest() kontrolü base sınıfta tek bir method'da toplandı. Kod tekrarı refactor edildi.

@RahmaNiftaliyev
Copy link

Services and Controller

@asimalizada
Copy link

  • Projenin eski halinde hem Servislerde hem Controller'larda temel CRUD işlemleri (add, get, update, delete) tekrarlanmaktaydı. Bu yapı servisler için IServiceBase, Controller'lar için GenericBaseController'da toplandı. Kod tekrarının önüne geçilmiş oldu.
  • Ek olarak, API Controller'larında her bir istek için kendini tekrarlayan result success durumuna göre Ok() ya da BadRequest() kontrolü base sınıfta tek bir method'da toplandı. Kod tekrarı refactor edildi.

Hocam, Add, Update, Delete metotları için RequestModel`ler gereke bilir. Repo çökebilir o zaman

@kazimkesler
Copy link

servisin generic olanı sorun cıkarabilir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants