public async Task <bool> updateSocietyProfile(string adminEmail, string societyId, Society society) { if (adminEmail != society.adminEmail && societyId != society.societyId) { return(true); } await context.update(societyId, society); return(false); }
public async Task <ActionResult> updateSocietyProfile([FromBody] Society Society) { await context.update(Society.societyId, Society); return(Ok(Society)); }