Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <ActionResult <Family> > AddFamilyAsync([FromBody] Family family) { try { Family addedFamily = await familyRepo.AddFamilyAsync(family); return(Ok(addedFamily)); } catch (Exception e) { Console.WriteLine(e); return(StatusCode(500, "Could not add family!")); } }