Harish Boddapati

Harish Boddapati

  • NA
  • 12
  • 3.7k

WEB API POST Method Functionality in Repository Class

Jun 29 2020 12:30 AM
Hi,
 
I have face with multiple values or grid values or list of collation values save issue in Repository class file
 
punlic async Task <Apiresult<string>>AddemployeeDetails(emp empdetails)
{
_dbcontext.add( empdetails)
 await._dbcontext.saveChangesAsync()
}
single record time its functionality working fine but multiple list time how to write the code ,please help me
for bellow syntax 
 
syntax like:
punlic async Task  <Apiresult<string>>AddemployeeDetails(list<emp> empdetails)
{
 
 
 

Answers (2)