public async Task <IActionResult> Post([FromBody] Writer writer) { if (writer == null) { throw new Exception("Value cannot be null"); } await db.Create(writer); return(Ok(writer)); }
public async Task <IActionResult> Post([FromBody] Writer writer) { if (writer == null) { throw new Exception("Value cannot be null"); } await db.Create(writer); return(Ok(writer)); }